

package io.renren.modules.job.task.basedata;

import io.renren.modules.basedata.service.AgencyUploadService;
import io.renren.modules.basedata.service.CardBlackListDownloadService;
import io.renren.modules.job.task.ITask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component("cardBlackListDownloadTask")
public class CardBlackListDownloadTask implements ITask {
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	CardBlackListDownloadService cardBlackListDownloadService;


	@Override
	public void run(String params){
		String str = null;
		logger.info("cardBlackListDownloadTask 定时任务正在执行，参数为：{}", params);

		try {

			 str = cardBlackListDownloadService.cardBlackListIncreDownload();
		}catch (Exception e){
			e.printStackTrace();
		}
		logger.info(str);
	}
}
